FROM debian:10
ENV SHELL /bin/bash
ENV HOME /root
ENV TZ Asia/Shanghai
ENV LANGUAGE zh_CN.UTF-8
ENV PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV crontab /crontab
ENV DNS1 119.29.29.29
ENV DNS2 180.76.76.76
ENV Time_max 100
ENV Time_mini 20
ENV morning 7
ENV night 23
ENV add 0
ENV TXT /root/URLS.txt
ENV TMP /tmp/docker/
ENV Kill /root/pk
ENV Version 2.9
ENV show off
ENV Concurrency 1
ENV Single 0
COPY dist/pk /root/pk
COPY URLS.txt /root/URLS.txt
COPY crontab /
COPY start.sh /start.sh
RUN chmod 0777 /start.sh
RUN mkdir -p /tmp/bilibili/ /tmp/docker/
RUN sed -i 's@http://deb.debian.org@http://mirrors.tuna.tsinghua.edu.cn@g' /etc/apt/sources.list
RUN apt clean all
RUN apt update
RUN  apt-get install --reinstall ca-certificates -y
#RUN sed -i 's@http://mirrors.tencent.com@http://mirrors.tuna.tsinghua.edu.cn@g' /etc/apt/sources.list
RUN rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.deb
WORKDIR $HOME
LABEL description="这是一个用于批量下载URL的工具."
LABEL maintainer="坐公交也用券"
LABEL home="https://liumou.site"
LABEL Version=2.11

CMD ["/start.sh"]